<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
  <head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="/css/normalize.css">
    <link rel="stylesheet" href="/css/reset.css">
    <title>Title</title>
    <style>
      input,textarea{
        display: block;
      }
    </style>
  </head>
  <body>
    <div style="color:red;" th:text="${amsg}"></div>
    <form action="/book/addBook" method="post">
      书名：<input type="text" name="bookName">
      作者：<input type="text" name="author">
      类型：<select name="typeId">
      <option value="">请选择</option>
      <option th:each="type : ${typeMap}" th:value="${type.key}" th:text="${type.value}"></option>
    </select>
      出版社：<input type="text" name="publisher">
      ISBN：<input type="text" name="isbn">
      库存：<input type="text" name="count">
      价格：<input type="text" name="price">
      介绍：<textarea type="text" name="description" rows="20" cols="60"></textarea>
      <input type="submit" value="添加">
    </form>
  </body>
</html>